<!--{include(pe_tpl('header.html'));}-->
<div class="right">
	<div class="now">
		<a href="admin.php?mod=article" <!--{if($act=='index' && !$_g_type):}-->class="sel"<!--{endif;}-->>资讯中心</a>
		<a href="admin.php?mod=article&type=help" <!--{if($act=='index' && $_g_type=='help'):}-->class="sel"<!--{endif;}-->>帮助中心</a>
		<a href="admin.php?mod=article&act=add" <!--{if($act=='add'):}-->class="sel"<!--{endif;}--> id="fabu">添加文章</a>
		<!--{if($act=='edit'):}--><a href="javascript:;" class="sel">修改信息</a><!--{endif;}-->
		<div class="clear"></div>
	</div>
	<div class="search">
		<form method="get">
			<input type="hidden" name="mod" value="{$_g_mod}" />
			<input type="hidden" name="type" value="{$_g_type}" />
			文章名称：<input type="text" name="name" value="{$_g_name}" class="inputtext input200" />
			<select name="class_id" class="selectmini">
			<option value="" href="{pe_updateurl('class_id', '')}">所有分类</option>
			<!--{foreach($cache_class_arr[$_g_type?'help':'news'] as $v):}-->
			<option value="{$v['class_id']}" href="{pe_updateurl('class_id', $v['class_id'])}" <!--{if($_g_class_id==$v['class_id']):}-->selected="selected"<!--{endif;}-->>{$v['class_name']}</option>
			<!--{endforeach;}-->
			</select>
			<input type="submit" value="搜索" class="input2" />
		</form>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<th class="bgtt" width="10"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'article_id')" /></th>
		<th class="bgtt" width="50">ID号</th>
		<th class="bgtt aleft">文章名称</th>
		<th class="bgtt" width="120">分类名称</th>
		<th class="bgtt" width="120">发布日期</th>
		<th class="bgtt" width="70">浏览量</th>
		<th class="bgtt" width="90">操作</th>
	</tr>
	<!--{foreach($info_list as $v):}-->
	<tr>
		<td><input type="checkbox" name="article_id[]" value="{$v['article_id']}"></td>
		<td>{$v['article_id']}</td>
		<td class="aleft"><a href="{pe_url('article-'.$v['article_id'])}" target="_blank">{$v['article_name']}</a></td>
		<td>{$cache_class[$v['class_id']]['class_name']}</td>
		<td class="num">{pe_date($v['article_atime'])}</td>
		<td class="num">{$v['article_clicknum']}</td>
		<td>
			<a href="admin.php?mod=article&act=edit&id={$v['article_id']}&{pe_fromto()}" class="admin_edit mar5">修改</a>
			<a href="admin.php?mod=article&act=del&id={$v['article_id']}&token={$pe_token}" class="admin_del" onclick="return pe_cfone(this, '删除')">删除</a>
		</td>
	</tr>
	<!--{endforeach;}-->
	<tr>
		<th class="bgtt"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'article_id')" /></td>
		<td class="bgtt aleft" colspan="6">
			<span class="fl"><button href="admin.php?mod=article&act=del&token={$pe_token}" onclick="return pe_cfall(this, 'article_id', 'form', '批量删除')">批量删除</button></span>
			<span class="fenye">{$db->page->html}</span>
		</td>
	</tr>
	</table>
	</form>
</div>
<script type="text/javascript">
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php' + $(this).find("option:selected").attr("href");
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->